﻿<!--#include file="utf-8.asp"-->
<!--#include file="sql.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="config.asp" -->
<%
'######################################
' 安科外贸网站管理系统中英文双语版
' anke Enterprise Web Site Management System
' 官方网站：http://www.shejifang.org
' 联系QQ：357052954
' 淘宝店： http://shejifang.taobao.com
'######################################
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>新闻中心-<%=config("title")%>></title>
<meta name="keywords" content="<%=config("keywords")%>" />
<meta name="description" content="<%=config("description")%>" />
<link href="images/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<!--#include file="header.asp" -->
<table width="913" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="193" valign="top">
    <table width="193" border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">
        <!--左侧导航-->
        <!--#include file="left3.asp"-->
        </td>
      </tr>
      <tr>
        <td width="193" height="324" align="center" valign="top">
        <!--热点产品-->
        <!--#include file="hot.asp"-->
        </td>
      </tr>
    </table></td>
    <td width="720" valign="top">
    
    <table width="720" height="609" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="720" height="34" align="right" valign="middle" background="images/title.jpg">
        <span style="float:left; padding:2px 0px 0px 25px; font-weight:bold; font-size:14px; color:#333333;">新闻中心</span>
        <a href="main.asp">网站首页</a> > <a href="news.asp">新闻中心</a>
        </td>
	</tr>
	<tr>
		<td height="113">
			<img src="images/about_02.jpg" width="720" height="113"></td>
	</tr>
	<tr>
		<td height="457" valign="top">
        <!--新闻列表-->
<%
set rs2=server.CreateObject("adodb.recordset")
rs2.open "select * from news_fl order by px_id asc",conn,1,1
while not rs2.eof
id = rs2("id")
%>
        <table width="720" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="720" height="38" align="right" valign="middle" background="images/News_title.jpg">
        <span style="float:left; padding:3px 0px 0px 52px; font-weight:bold; font-size:13px; color:#333333;"><%=rs2("title")%></span>
        <a href="NewsMore.asp?id=<%=id%>"><img src="images/more2.gif" width="40" height="11" border="0" style="margin:5px 6px 0px 0px;" /></a>
        </td>
	</tr>
	<tr>
		<td width="720" height="176" valign="top">
<% 
set rs=server.createobject("adodb.recordset") 
exec="select * from [news] where ssfl="&id&"  order by id desc"  'ssfl=这里指定新闻的分类ID
rs.open exec,conn,1,1 
%>
<div class="box14">
<ul>
<%if rs.eof and rs.bof then
response.Write("暂无公司新闻!")
end if
%>
<%
For i=1 To news_num
if rs.eof then exit for
%>
<li><a href="shownews.asp?/<%=rs("id")%>.html" title="<%=rs("title")%>"><%=left(rs("title"),60)%></a>&nbsp;&nbsp;&nbsp;<%=rs("data")%></li>
<% 
rs.movenext 
next
%>
</ul>
</div>
        </td>
	</tr>
</table>
<%
rs2.movenext
wend
rs2.close
set rs2=nothing
%>

        </td>
	</tr>
</table>
    
    </td>
  </tr>
</table>
<!--#include file="foot.asp" -->
</body>
</html>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>